/*
 * Copyright 2010. 
 * 
 * This document may not be reproduced, distributed or used 
 * in any manner whatsoever without the expressed written 
 * permission of Boventech Corp. 
 * 
 * $Rev: Rev $
 * $Author: Author $
 * $LastChangedDate: LastChangedDate $
 *
 */

package com.xrkol.sharelib.util;

import java.util.HashSet;
import java.util.List;

/**
 * @author peng.xia
 *
 */
public class CollectionUtils {

    @SuppressWarnings({ "rawtypes", "unchecked" })
    public static List removeDuplicate(List list){
        HashSet set = new HashSet(list);
        list.clear();
        list.addAll(set);
        return list;
    }
}
